/*
 * XML Type:  InterResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.InterResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML InterResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class InterResponseImpl extends net.ofx.types.x2003.x04.impl.AbstractInterResponseImpl implements net.ofx.types.x2003.x04.InterResponse
{
    
    public InterResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CURDEF$0 = 
        new javax.xml.namespace.QName("", "CURDEF");
    private static final javax.xml.namespace.QName SRVRTID$2 = 
        new javax.xml.namespace.QName("", "SRVRTID");
    private static final javax.xml.namespace.QName XFERINFO$4 = 
        new javax.xml.namespace.QName("", "XFERINFO");
    private static final javax.xml.namespace.QName DTXFERPRJ$6 = 
        new javax.xml.namespace.QName("", "DTXFERPRJ");
    private static final javax.xml.namespace.QName DTPOSTED$8 = 
        new javax.xml.namespace.QName("", "DTPOSTED");
    private static final javax.xml.namespace.QName REFNUM$10 = 
        new javax.xml.namespace.QName("", "REFNUM");
    private static final javax.xml.namespace.QName RECSRVRTID$12 = 
        new javax.xml.namespace.QName("", "RECSRVRTID");
    private static final javax.xml.namespace.QName XFERPRCSTS$14 = 
        new javax.xml.namespace.QName("", "XFERPRCSTS");
    
    
    /**
     * Gets the "CURDEF" element
     */
    public net.ofx.types.x2003.x04.CurrencyEnum.Enum getCURDEF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CURDEF$0, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.CurrencyEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "CURDEF" element
     */
    public net.ofx.types.x2003.x04.CurrencyEnum xgetCURDEF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CurrencyEnum target = null;
            target = (net.ofx.types.x2003.x04.CurrencyEnum)get_store().find_element_user(CURDEF$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CURDEF" element
     */
    public void setCURDEF(net.ofx.types.x2003.x04.CurrencyEnum.Enum curdef)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CURDEF$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CURDEF$0);
            }
            target.setEnumValue(curdef);
        }
    }
    
    /**
     * Sets (as xml) the "CURDEF" element
     */
    public void xsetCURDEF(net.ofx.types.x2003.x04.CurrencyEnum curdef)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CurrencyEnum target = null;
            target = (net.ofx.types.x2003.x04.CurrencyEnum)get_store().find_element_user(CURDEF$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CurrencyEnum)get_store().add_element_user(CURDEF$0);
            }
            target.set(curdef);
        }
    }
    
    /**
     * Gets the "SRVRTID" element
     */
    public java.lang.String getSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SRVRTID$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "SRVRTID" element
     */
    public net.ofx.types.x2003.x04.ServerIdType xgetSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(SRVRTID$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "SRVRTID" element
     */
    public void setSRVRTID(java.lang.String srvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SRVRTID$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SRVRTID$2);
            }
            target.setStringValue(srvrtid);
        }
    }
    
    /**
     * Sets (as xml) the "SRVRTID" element
     */
    public void xsetSRVRTID(net.ofx.types.x2003.x04.ServerIdType srvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(SRVRTID$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ServerIdType)get_store().add_element_user(SRVRTID$2);
            }
            target.set(srvrtid);
        }
    }
    
    /**
     * Gets the "XFERINFO" element
     */
    public net.ofx.types.x2003.x04.TransferInfo getXFERINFO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransferInfo target = null;
            target = (net.ofx.types.x2003.x04.TransferInfo)get_store().find_element_user(XFERINFO$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "XFERINFO" element
     */
    public void setXFERINFO(net.ofx.types.x2003.x04.TransferInfo xferinfo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransferInfo target = null;
            target = (net.ofx.types.x2003.x04.TransferInfo)get_store().find_element_user(XFERINFO$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.TransferInfo)get_store().add_element_user(XFERINFO$4);
            }
            target.set(xferinfo);
        }
    }
    
    /**
     * Appends and returns a new empty "XFERINFO" element
     */
    public net.ofx.types.x2003.x04.TransferInfo addNewXFERINFO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransferInfo target = null;
            target = (net.ofx.types.x2003.x04.TransferInfo)get_store().add_element_user(XFERINFO$4);
            return target;
        }
    }
    
    /**
     * Gets the "DTXFERPRJ" element
     */
    public java.lang.String getDTXFERPRJ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTXFERPRJ$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTXFERPRJ" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTXFERPRJ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTXFERPRJ$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTXFERPRJ" element
     */
    public boolean isSetDTXFERPRJ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTXFERPRJ$6) != 0;
        }
    }
    
    /**
     * Sets the "DTXFERPRJ" element
     */
    public void setDTXFERPRJ(java.lang.String dtxferprj)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTXFERPRJ$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTXFERPRJ$6);
            }
            target.setStringValue(dtxferprj);
        }
    }
    
    /**
     * Sets (as xml) the "DTXFERPRJ" element
     */
    public void xsetDTXFERPRJ(net.ofx.types.x2003.x04.DateTimeType dtxferprj)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTXFERPRJ$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTXFERPRJ$6);
            }
            target.set(dtxferprj);
        }
    }
    
    /**
     * Unsets the "DTXFERPRJ" element
     */
    public void unsetDTXFERPRJ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTXFERPRJ$6, 0);
        }
    }
    
    /**
     * Gets the "DTPOSTED" element
     */
    public java.lang.String getDTPOSTED()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTPOSTED$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTPOSTED" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTPOSTED()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTPOSTED$8, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTPOSTED" element
     */
    public boolean isSetDTPOSTED()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTPOSTED$8) != 0;
        }
    }
    
    /**
     * Sets the "DTPOSTED" element
     */
    public void setDTPOSTED(java.lang.String dtposted)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTPOSTED$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTPOSTED$8);
            }
            target.setStringValue(dtposted);
        }
    }
    
    /**
     * Sets (as xml) the "DTPOSTED" element
     */
    public void xsetDTPOSTED(net.ofx.types.x2003.x04.DateTimeType dtposted)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTPOSTED$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTPOSTED$8);
            }
            target.set(dtposted);
        }
    }
    
    /**
     * Unsets the "DTPOSTED" element
     */
    public void unsetDTPOSTED()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTPOSTED$8, 0);
        }
    }
    
    /**
     * Gets the "REFNUM" element
     */
    public java.lang.String getREFNUM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFNUM$10, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "REFNUM" element
     */
    public net.ofx.types.x2003.x04.ReferenceNumberType xgetREFNUM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ReferenceNumberType target = null;
            target = (net.ofx.types.x2003.x04.ReferenceNumberType)get_store().find_element_user(REFNUM$10, 0);
            return target;
        }
    }
    
    /**
     * True if has "REFNUM" element
     */
    public boolean isSetREFNUM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(REFNUM$10) != 0;
        }
    }
    
    /**
     * Sets the "REFNUM" element
     */
    public void setREFNUM(java.lang.String refnum)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFNUM$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REFNUM$10);
            }
            target.setStringValue(refnum);
        }
    }
    
    /**
     * Sets (as xml) the "REFNUM" element
     */
    public void xsetREFNUM(net.ofx.types.x2003.x04.ReferenceNumberType refnum)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ReferenceNumberType target = null;
            target = (net.ofx.types.x2003.x04.ReferenceNumberType)get_store().find_element_user(REFNUM$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ReferenceNumberType)get_store().add_element_user(REFNUM$10);
            }
            target.set(refnum);
        }
    }
    
    /**
     * Unsets the "REFNUM" element
     */
    public void unsetREFNUM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(REFNUM$10, 0);
        }
    }
    
    /**
     * Gets the "RECSRVRTID" element
     */
    public java.lang.String getRECSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RECSRVRTID$12, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "RECSRVRTID" element
     */
    public net.ofx.types.x2003.x04.ServerIdType xgetRECSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(RECSRVRTID$12, 0);
            return target;
        }
    }
    
    /**
     * True if has "RECSRVRTID" element
     */
    public boolean isSetRECSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RECSRVRTID$12) != 0;
        }
    }
    
    /**
     * Sets the "RECSRVRTID" element
     */
    public void setRECSRVRTID(java.lang.String recsrvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RECSRVRTID$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RECSRVRTID$12);
            }
            target.setStringValue(recsrvrtid);
        }
    }
    
    /**
     * Sets (as xml) the "RECSRVRTID" element
     */
    public void xsetRECSRVRTID(net.ofx.types.x2003.x04.ServerIdType recsrvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(RECSRVRTID$12, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ServerIdType)get_store().add_element_user(RECSRVRTID$12);
            }
            target.set(recsrvrtid);
        }
    }
    
    /**
     * Unsets the "RECSRVRTID" element
     */
    public void unsetRECSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RECSRVRTID$12, 0);
        }
    }
    
    /**
     * Gets the "XFERPRCSTS" element
     */
    public net.ofx.types.x2003.x04.TransferProcessingStatus getXFERPRCSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransferProcessingStatus target = null;
            target = (net.ofx.types.x2003.x04.TransferProcessingStatus)get_store().find_element_user(XFERPRCSTS$14, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "XFERPRCSTS" element
     */
    public boolean isSetXFERPRCSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(XFERPRCSTS$14) != 0;
        }
    }
    
    /**
     * Sets the "XFERPRCSTS" element
     */
    public void setXFERPRCSTS(net.ofx.types.x2003.x04.TransferProcessingStatus xferprcsts)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransferProcessingStatus target = null;
            target = (net.ofx.types.x2003.x04.TransferProcessingStatus)get_store().find_element_user(XFERPRCSTS$14, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.TransferProcessingStatus)get_store().add_element_user(XFERPRCSTS$14);
            }
            target.set(xferprcsts);
        }
    }
    
    /**
     * Appends and returns a new empty "XFERPRCSTS" element
     */
    public net.ofx.types.x2003.x04.TransferProcessingStatus addNewXFERPRCSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransferProcessingStatus target = null;
            target = (net.ofx.types.x2003.x04.TransferProcessingStatus)get_store().add_element_user(XFERPRCSTS$14);
            return target;
        }
    }
    
    /**
     * Unsets the "XFERPRCSTS" element
     */
    public void unsetXFERPRCSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(XFERPRCSTS$14, 0);
        }
    }
}
